Debug mode aaded to js application