Builds out js methods and adds testing