Handling declared attributes

This was actually a regression
Triggering onload with jquery