Created JS procedure.