Reviewed Additional Javascript Tests

@clarkbarz reviewed the javascript tests in pull request #128, which was requested in #127. 
Nm, writing a test for renderPromise would be preferable, right?