fix selectors in truncate feature
add document ready to delay execution of truncate script