Added file

All javascript from html document has been moved here.