Having javascript inside an attribute is kinda old-school, but okay