added method to call directly javascript from groovy