removed unused files and place local js in own file