not sure how to pass thing into javascript