for mobile

add test for mobile in lib.js