jshint placation
I guess this is what was wrong