Fixed javascript

check