Cleaned up scroll trigger implementation; plus tweaks for IE.