mock objects / poc for javascript