Setting the volume percent in JS now. Switch from snprintf to strcpy where possible.