Fixed issue with JS build