mobile test js snippet