shorter js, typo corrections