mobile js for bg