fixing js ul bug