Replace javascript engine by groovy engine