getting js setup to call to backend with message for object and params