Further js implementation