I'm wondering this behavior is already reported or not.
However it doesn't fire when it is saved on mac (I tested on OS 10.10, firefox).
It works fine with Windows.
I studied this sample and use similar script. I appreciate if anybody could provide further information.