a javascript template for mobile