change head.load api to pass attributes to loaded dom element