Minor Changes to JS