simple stub/spy javascript library