Allow accessing COPY components dict style. #190.
Make copytext more flexible. Generate JS equivalent. Closes #190.