Added JavaScript implementation of PHP's strip_tags function
Added functionality to strip tags from messages except <img>