Add defer function for browser compatibility

Signed-off-by: Eli Skeggs <skeggse@gmail.com>
[0.0.8-1] Version bump

Signed-off-by: Eli Skeggs <skeggse@gmail.com>