Added Checkin javascript