Updated JS file to adhere to current CF standards