Update server/src/site/js/orientdb-api.js

Explictly set basic Auth headers as these are sometimes not set automatically
Merge pull request #1375 from mattaylor/master

fixed basic auth headers on JS api