Added controller to scripts.js