renamed index.js to app.js.
added TARGET. prefix for various requirement so that condor_q -analysis will work properly.