tidied up form for charleston_js