#3: Simplify stat assignment
Tiny optimizations
Use newer HTML5 Notification standard