Placed JS logic in separate file
Minor layout change
Add masterSocketID to upload form