fixes #148, added baseurl to Ajax calls in ajax.js

Needed if installed in subdir.