use getUrl and getScriptName instead of a hardcoded URL
Merge pull request #9 from mnlg/base-url

Use getUrl and getScriptName instead of a hardcoded URL