I tried adding the code to template/page/html/head.phtml
if (Mage::helper('mobiledetect')->isMobile()){
$this->addItem('js', 'js/mobile_jsscript.js');
$this->getLayout()->getBlock('head')->removeItem('js', 'js/normal_js_script.js');
}
Is this the correct way to add and remove js based on criteria?