javascript errors removed