how to write javascript syntax