Fixed JS error on levels page