Javascript wrapper to create UI element with Twitter Bootstrap