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