updated jshintrc to be more struct and updated model and controller code to
comply
.jshintrc made more strict and code modified to comply with it