Is there a function that allows me to do something as soon as the prototype loads? onPageLoad or something like that?
Just add it without an event.
Instead of:Layer.onTap -> this.animate
window.onload = ->....do someting
my workaround is...
test = new Layer_____visible: false