Make changes to JSHint rules

Fix js errors thrown by JSHint and ignore .DS_Store