add snippet for angular's then
add snippt for js log