moved jtemplate into prompt.sh as a shell function