Move javascripts and remove obsolete ones