Updated formatting to include semicolons, spacing, and removal of type...

Updated formatting to include semicolons, spacing, and removal of type in javascript