Remove prints in javascript