Update resource.js

Fix some grammar issues.
Make it really clear that all methods defined on a resource are prefixed with $.