HYDRO-5 - Implement javascript version of the library