add script files in layout.html.erb
remove hardcoded videos array attempt to use click event handler for object