Security fixes for newer Chrome versions, as inline javascript is no longer allowed

This makes the code compatible with Chrome 26 and latest Github changes.

Some nicer notification styling would probably be a nice touch, but leaving that for now.