fix broken javascrtip