Changed to use new js call