Update attributes.js

fix ajax_create, so now even if the site not on the root, the ajax_create attribute creation works fine
Merge pull request #334 from khalifavi/patch-1

Update attributes.js so attributes work when Pyro is not installed at root level