A couple js nits