added the javaScript part necessary for movie page