Remove addOnloadHook (removed as of Mediawiki 1.23)

+ Minor reformatting