Fix dynamic script loading in JQM