Change constructor functions naming.

As a Javascript convention, constructor functions should start with an uppercase. This prevents global variables by omitting 'new' keyword.