Converted most of python to JS