Changing syntax to call js