Added 'method' option for ajax method. Defaults to "GET"

Simple change to allow ajax to use GET or POST. 
Should work with PUT as well.