make it work with bundler
remove trailing whitespace
fixed issue with html entities