Fix issue with deploy JS