1. fix js bug