Javascript Use String As Objective Definition