finalized js