a starting point for a javascript component / plugin