Removed new from rest services, conflicts with JS keyword
removed redundant local var