Modife source so it passes jshint and jscs