Sample cocoa app with support to javascript plugins, can be used as a starting point