Added feature to write javascript inside an attribute