Implemented file upload, track plot, start line

Moved things out of html to js files