Use r.js for javascript optimisations