How to write Private Members in a JavaScript Class