js hint finalizing