Updating myalerts.js to actually be a structured JavaScript object rather than a collection of fairly useless lines of code.

Signed-off-by: Euan Torano <euantorano@gmail.com>