Adding more of the helper methods to JS