SMS: Javascript application cookbook