reference to original javascript implementation