a simple JS template toolkit