some very basic api javascript test