mandatory js