007 solution in js