Fix problem with double slash

When JS is in main directory of module - we have "//" in href.

This PR fix this