adding comment to javascript constructors