fixing javascript error that made it fail to compile in the asset pipeline