Adjusted javascript for welcome page