Update js/functions.js

Updated to handle tab input for any element with the wmd-input class.  Ported to jQuery binding of the elements on load.