JavaScript: get the current executing