fix JavaScript