Disabled api js causing errors