revise actionkit js for testing