fixed small js issue