Change constructors to uppercase

Fix other minor JSHint recommendations