moved js tests to resources so 'npm test' works