Fixed JS for readability