Get the caller of the javascript function