reorganize javascripts and delete unneeded files