simplify mobile device js