added create new rest in editRest. Created js file for functionality.
added create new rest in editRest. Created js file for functionality.