merge request : make the code perform the expected task. javascript conventions