update: I removed camera shake in the webGL version, now taking damage won't cause camera shake in browser version.