Improve javascript in welcome page [ci skip]