Testing a one page app with jquery (works with Firefox, pb w js function)