added necessary javascripts