Small refactor of JS