Put a try-catch around some value setting, as well as handling errors/exceptions better
Put a generic dialog, but it isn't used yet.
Added the register-done route
Removed some debugging code
Some comments
Commented out the bower line again
Removed test code, got it working, and put some commented code in there to overload window.alert (that doens't work)
import