Removing syntax error and moving strict inside the closure