Split attractor code into a separate js file