Do it in javascript