better relative linking (programmatic absolue link) in access.js javascript