Javascript Use String As Variable Frequency Drive