I'm not much aware of the JS stuff actually. But once I change the code to the one mentioned here as well as what was there in the bootstrap.php, the carousel does not start automatically.