scrollIntoView does not work in firefox

solution is to launch the animation on both body and html elements
(solution found there http://stackoverflow.com/questions/8149155/animate-scrolltop-not-working-in-firefox)

After this fix, the callback was called twice, so I added a counter to limit to one call on the callback function.