new file for testing rest call from javascript