Working version of datapng html and javascript.