Made all plugin commands non-static and added javascript engine