fix regex for scales containing - or _
add upgrade step for javascript registration