Added jquery functionality
Fixed replacewidth and html
merge changes