working jspost api
fixed up a bug in vimscript