Moving back to a javascript solution.