Javascript hotfix