First GestIT in Javascript

Just a line-by-line translation made from F# with fixme and placehoder
(check remove function)