timelines jshint

Makes timelines.js more jshint compatible.