now with better regex which doesn't need proper semicolons, as semicolons are not required in JS