Add JSDoc blocks to frontend JS files