STarting the JS rewrite

Create a MyAlerts class to handle most major MyAlerts functionality. Will need some testing and changes to the plugin file slightly.