Fixes styles inconstencies with javascript regexes