Moved comment upgrade javascript to its own file.