+map -> map (regexp solution), alert() -> u(.msg)
update tweaking
readability tweaks