Javascript Use String As Variable Frequency Controller