Port of AS3SFXER to Javascript