Capitalize constructor name in generated page.js

attachTo is called on component constructors not instances