Fixed js and jquery issue