sample js app