A simple JavaScript plugin architecture