finalized js page