internationalized the scripts

used wp_localize scripts to make the strings in the collapse script
translatable