prevent exception in modal.js when hash tag contain /