New kata; js implementation