Php Array Key To String Javascript Methods