scripts now using RClientScript::global