Adding javascript syntax