moved js into separate files, added resources and routes