fix syntax to yavascript