defining measures.js for precompilation on heroku, following rails guide.