Java script work