switched to coffeescript for mobile pag