javascript prototype added
constructor added