Moved testapp js to its own file.