added ajax file upload and working on how to add script to the head from template