Moved include of app.js script to end of page. Loading it as first thing on top causes automatic web-tests to fail, as when executing the script, the page elements for the signing modal are not yet parsed and the test crashes stating an undefined exception