Prevent multiple initializations on the same element, change a couple of function statements to correct strict mode errors.