Added Initial Functions Needed

Updated JS file with the initial functions needed.