Fixed browser tests for new JS version