moved javascript related to testing mode into its own file.  close jstavel/edeposit.content#16