js requirement, little cleanup