Updated js code for last commit.