Remove invalid JS calls