Move terms js out of app.js