understand how to call javascript