Including semicolons at the end of statements
Added onclick function to newEntrySubmit button