Refactor in transaction.js & newDesignScript.js

Made it easier to change ip when deploying

Commit: Robert