Scrolling and stuff
Cont'd cleaning up JS code