Added a few functions to JS, not completed though