updating README and cleaning up js