Ecohack js sample