Fix for browser js