handler javascript fix