write javascript