changed message type to html in alert function. Changed from utils.log to use utils.alert instead