huge refactor to requirejs, time to start modularizing nicely! :>