Adds a javascript helper for having a link trigger a POST submisison.