Rest Call in javascript added