refactored pta

started creating stand-alone jquery-pta.js script