check js at head