Durrr
JSified, tests to come
Convert to JS, refactor