small sample js stuff