Add doc blocks to JavaScript files