moved xhr calls into browser class since jQuery is not usable in firefox