add javascript trick to redirect if mobile device detected