reference all the libraries and setting up document load.