JS fixes

- Fix jump scrolling
- Check for tags before assignment