move initial javascript code to view
add videojs, waveforms, jqeury-jsonp