Fix a javascript