Move JavaScript to its own JS folder