Javascript Use String As Variable Frequency Generator