JavaScript cleanup and parallax implementation