code style
Use alarms API instead of setInterval

much nicer towards memory

Fixes #14