Updated js for answer