Adds keys and end of function comments to components.js