Fixed error caused by loading JS locally