Replace decode_entities
Wrap js in library