Working on alert formatting.

Fixed myalerts.js and tidied up formatting of alerts.