Testing JavaScript DJS Functions