added route templates
added route templates
implemented javascript part of file upload