Added some missing libs, and it looks like chaplin makes some assuptions about how the JS is organised, so made some adjustments to accommodate for that