Add attribution.js, Fix compatibility bug