[ticket/10949] Converted AJAX coding standards to new guidelines.

Basically, moved parentheses to same line and changed variable names to
camel case.

PHPBB3-10949
Merge remote-tracking branch 'callumacrae/ticket/10949' into ticket/10949

Conflicts:
	phpBB/assets/javascript/core.js
[ticket/10949] Converted missing code to new JS coding guidelines

A few missing semi-colons were also added where needed.

PHPBB3-10949
[ticket/10949] Remove not needed comma

This comma might actually cause issues in browser. Therefore remove it.

PHPBB3-10949
Merge PR #1178 branch 'marc1706/ticket/10949' into develop

# By Marc Alexander (2) and Callum Macrae (1)
# Via Marc Alexander
* marc1706/ticket/10949:
  [ticket/10949] Remove not needed comma
  [ticket/10949] Converted missing code to new JS coding guidelines
  [ticket/10949] Converted AJAX coding standards to new guidelines.