add js solutions to problem 13 and 14