Improve owner JS block formatting