Painless JavaScript Unit Testing