popup direction argument changed to <left-right> since v0.4.1

Also, '.g' class attribute no longer used.