A plugins system for javascript, based on the Wordpress action & filter system