Rewrite of the entire js code
Must remember to pull before rewriting the whole codebase