added delete $resource method on client side
javascript inheritance implemented with subClass.js