Javascript fix