added javascript and moved files