fix loader for the browser
closes #127