Adding functionality to the loop option

Very short fix. So far the ```loop``` option in animator.js had no effect, so it was always enabled. With this if it's set to ```false``` it won't loop. This will be useful for animations where showing all steps clearly is important (i.e. maps with a small number of points).

Ref issue #14 

cc @javisantana 
This puts the pointer at time = 0, but the animation is effectively stopped at the last frame. When play() is called again the animation resumes from time=0.