Java script fix

@mnzaki