How To Use Constructor In Javascript Class