added js pause check capability for more mobile support