indent JS two spaces
add curl comments for test documentation