Eric's javascript tests