Cool, can you implement it in javascript?