Add secondary constructor to js.Function to have no-arg primary ctor as required by scala-js
Add checks for js.Any class structure in frontend-phase