prefer published date to updated date
make codes badge more flexible
fixed javascript call to be able to work with multiple maps on one page