Moving JS around