Add function.js to component.json

Yups, with `rework.function` refactoring I forget about `component.json`. Maybe we need some tests for browser?