some notes before I dump require.js because Rhino cant run optimisation