add mobile checking var in JS