Used require.js to separate API logic and handlebars template rendering
Replaced for-loop with Handlebars each block helper
Movie-detail page now works with require.js