Javascript Use String Variable Type