add some js back for ipad