proper modules, moved http to js
wip
common js module loading is working now