change outdated comment
move var declarations to the top
remove outdated comment
getTrackLayerData should never return undefined values