Fixed missing new keywords
Minor fixes
JSHint fixes
JSHint fixes
JSHint fixes