Convert String To Object Key In Javascript Alert