fixed $ js problem