Code now complies to strict code. Changed function expression to labeled function.