Throwing away all the unused node.js shit.
Moving the static stuff to top level and refactoring JS