document general approach of javascript source code testing