Fixed bug in assigning ids, added contrast filter for webkits browsers