Add 'use strict' to JavaScript code

Add 'use script' to all functions and scripts in the 'scripts'
directory.