Script Fixes for JSSamples