updated rpdouction javascript;