fix javascript error doing checkins