Fix error check in spoiler field
Update default js values in paint