Fix online test javascript