Fixed some bugs in the custom.js and updated somethings on the index.html