Added logic from Bram for checking syntax and format of an uploaded js file.
Upload not working yet.