Javascript Use String As Variable Cost