changed movies controller method and created basic functions for scripts.js