Improve JS organisation and Grnt tasks.