Removed file input
Moved js code from template to js library