Fix relative dependencies import

Fix problem when not loaded within root URL (not http://example.com/)