consistent styling of comma first formatting

removed unessesary var declarations so that it can be done
with just one. Consider adding jshint to the project so that 
project consistency is enforced.