JavaScript fix for dodgy chrome mobile background support.