Check for D3 before running timeline function
scrollHandler() amended to work with arrays of any length