Here is an excellent video by Juniper on how to get started with Junoscript. This video is excellent! I have been writing Junoscripts for a while now and learned some new things from this video, highly recommended.
http://www.juniper.net/us/en/training/elearning/junos_scripting.html
Download it