Changed 'body' scrollTop to 'window' scrollTop to work in Firefox.