javascript object array instead of hard coding