stubbing application framework js